package io.renren.modules.task.service.impl;

import org.springframework.stereotype.Service;
import java.util.Map;
import com.baomidou.mybatisplus.core.conditions.query.QueryWrapper;
import com.baomidou.mybatisplus.core.metadata.IPage;
import com.baomidou.mybatisplus.extension.service.impl.ServiceImpl;
import io.renren.common.utils.PageUtils;
import io.renren.common.utils.Query;

import io.renren.modules.task.dao.VehicleDao;
import io.renren.modules.task.entity.VehicleEntity;
import io.renren.modules.task.service.VehicleService;


@Service("vehicleService")
public class VehicleServiceImpl extends ServiceImpl<VehicleDao, VehicleEntity> implements VehicleService {

    @Override
    public PageUtils queryPage(Map<String, Object> params) {
        IPage<VehicleEntity> page = this.page(
                new Query<VehicleEntity>().getPage(params),
                new QueryWrapper<VehicleEntity>()
        );

        return new PageUtils(page);
    }

}